﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Faker {
    public static class DateTimeFaker {
        public static DateTime Date(DateTime from, DateTime to) {
            var rnd = new Random();
            var range = new TimeSpan(to.Ticks - from.Ticks);
            return from + new TimeSpan((long)(range.Ticks * rnd.NextDouble()));
        } 
    }
}
